package com.itheima.loader;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class Demo02 {

    public static void main(String[] args) throws IOException {
        Properties prop= new Properties();
      /*  prop.load(new FileInputStream("day17\\a.properties"));
        System.out.println(prop);*/
        ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
        InputStream is = systemClassLoader.getResourceAsStream("a.properties");
        prop.load(is);
        System.out.println(prop);


    }
}
